package com.wangdao.wechatmall.bean.vo.admin;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author ShuiYi
 * @time 2021-07-09 18:30
 */
@Data
public class CouponCreateVo {

    /**
     * id : 40
     * name : test
     * total : 1
     * discount : 1
     * min : 1
     * limit : 1
     * type : 0
     * status : 0
     * goodsType : 0
     * goodsValue : []
     * timeType : 0
     * days : 0
     * addTime : 2021-07-09 18:31:39
     * updateTime : 2021-07-09 18:31:39
     */

    private Integer id;
    private String name;
    private Integer total;
    private Integer discount;
    private Integer min;
    private Integer limit;
    private Integer type;
    private  Integer status;
    private Integer goodsType;
    private Integer timeType;
    private Integer days;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date addTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;
    private Object[] goodsValue;


}
